export default {
	//存储数据
	set(key: string, value: string) {
		return window.localStorage.setItem(key, value)
	},
	//获取数据
	get(key: string) {
		return window.localStorage.getItem(key)
	},
	//删除某一项数据
	remove(key: string) {
		//重新存储数据
		return window.localStorage.removeItem(key)
	},
	//清除所有数据
	clear() {
		return window.localStorage.clear()
	}
}
